new MVC.Test.Controller('directories',{
	test_mouseover: function(){
		var params = this.DirectoryMouseover(2);
		this.assert_equal('#e8eef7', RGB2HEX(params.element.style.backgroundColor) );
	},
	test_mouseout: function(){
		var params = this.DirectoryMouseout(2);
		this.assert_equal("", RGB2HEX(params.element.style.backgroundColor) )
	},
	test_click: function(){
		var params = this.DirectoryClick(2);
		this.assert_equal("#3167c5", RGB2HEX(params.element.style.backgroundColor));
		this.DirectoryMouseover(2);
		this.assert_equal("#3167c5", RGB2HEX(params.element.style.backgroundColor));
		this.DirectoryMouseout(2);
		this.DirectoryClick(3);
		this.assert_equal("", params.element.style.backgroundColor);
	},
	test_open_and_close: function(){ //could test alphabetical
		this.next(this.DirectoryDblclick(2))
	},
	open_test_folder: function(params){ //calling me
		this.assert_equal(5, params.element.next().childNodes.length);
		this.next(this.DirectoryDblclick(3) );
	},
	open_images_folder:function(params){
		this.assert_equal(2, params.element.next().childNodes.length);
		this.next(this.DirectoryDblclick(4));
	},
	close_test_folder:function(params){
		this.assert_equal(2, params.element.next().childNodes.length);
		this.next(this.DirectoryDblclick(3));
	},
	check_test_closed: function(params){
		this.assert_equal(2, params.element.next().childNodes.length);
		this.assert_equal('none', params.element.next().style.display);
		this.next(this.DirectoryDblclick(2));
	},
	check_demo_closed : function(params){
		this.assert_equal('none', params.element.next().style.display);
	},
	test_contextmenu: function(){
		this.DirectoryContextmenu(10);
		this.assert_equal('block', MVC.$E('menu').style.display);
		this.next();
	},
	check_shadow: function(){
		this.assert_equal('block', MVC.$E('menuShadow').style.display);
		this.DirectoryClick('#/aaa');
	},
	test_drag: function(){
		this.assert_equal(0, MVC.$E('/u_to_here').next().childNodes.length)
		this.Drag('#/drag',{from: '/drag', to: '/u_to_here', duration: 2, callback: this.next_callback('done_dragging',1)  }  )
	},
	done_dragging : function(){
		this.assert_equal(2, MVC.$E('/u_to_here').next().childNodes.length);
	}
});


